<style type="text/css">
    #table-box-user{
        width:300px;
/*        margin:0 auto;*/
        border:1px solid #a0a0a0;
        border-radius:10px;
        padding:10px;
    }
    #table-box-user td{
        padding:10px;
/*        border:1px solid #a0a0a0;*/
    }
</style>
<div class="detbox">
    <div class="dettop"></div>
    <div class="detmain">
        <?php     if(!empty($_SESSION['login']) ){ ?>
        <div id="box_ajax">
<?php


    if(!empty($_SESSION['login']) && !empty($list_user)){
        echo '<h3>List User</h3><table id="table-box-user"><tr><td style="border-bottom:1px solid #a0a0a0">No</td><td style="border-bottom:1px solid #a0a0a0">Username</td></tr>';
        for($i=0;$i<count($list_user);$i++){
            echo '<tr><td>'.($i+1).'</td><td><a href="'.BASE_URL.'user_con/profile/'.$list_user[$i]['ID_USER'].'">'.$list_user[$i]['USERNAME'].'</a></td></tr>';
        }
          echo '</table>';
    }
        
?>                    
                    </div>
                <?php } ?>
                
            </div>
            <div class="detbot"></div>
        </div>
